<template>
	<view class="add" @click="goadd">
		<image src="https://images.wanjunshijie.com/mini/buildingMaterialsCloud/gsgl/icon_add.png" mode=""></image>
		<text>新增</text>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				style: {
					// 字符串的形式
					p: 'font-size:28rpx;',
					span: 'font-size: 28rpx;',
				}
			}
		},
		props: {
			item: {
				type: Object,
				default () {
					return {};
				}
			}
		},
		computed: {
			remark: function() {
				var msg = this.item.remark.replace(/<\/?[^>]*>/g, ''); //去除HTML Tag
				msg = msg.replace(/[|]*\n/, ''); //去除行尾空格
				msg = msg.replace(/&npsp;/gi, ''); //去掉npsp
				msg = msg.substring(0, 39)
				return msg;
			}
		},
		methods: {
			goadd(){
				uni.navigateTo({
					url: '/pages/home/enterprise/companyManagement/add/add'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.add {
		width: 128rpx;
		height: 128rpx;
		background: #4087FF;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: nowrap;
		flex-direction: column;
		align-content: flex-start;
		border-radius: 50%;
		right: 28rpx;
		bottom: 96rpx;
		position: fixed;
		image {
			width: 44rpx;
			height: 44rpx;
		}

		text {
			font-size: 22rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			margin-top: 5rpx;
		}
	}
</style>
